﻿//Created by Action Script Viewer - http://www.buraks.com/asv
package net.wooga.pets.controllers.startup {
    import flash.events.*;
    import net.wooga.pets.events.*;
    import net.wooga.pets.controllers.data.*;
    import net.wooga.pets.views.*;
    import net.wooga.pets.events.windows.*;
    import net.wooga.pets.constants.*;
    import org.robotlegs.mvcs.*;
    import net.wooga.pets.controllers.hiredoctor.*;
    import net.wooga.pets.controllers.world.*;
    import net.wooga.pets.controllers.*;
    import net.wooga.pets.controllers.kindergarten.*;
    import net.wooga.pets.controllers.kiosk.*;
    import net.wooga.pets.controllers.fountain.*;
    import net.wooga.pets.controllers.windows.sun.*;
    import net.wooga.pets.controllers.collections.*;
    import net.wooga.pets.controllers.popups.*;
    import net.wooga.pets.controllers.contracts.*;
    import net.wooga.pets.controllers.payment.*;
    import net.wooga.pets.controllers.testgroup.*;
    import net.wooga.pets.controllers.missions.*;
    import net.wooga.pets.controllers.windows.standard.*;

    public class PrepControllerCommand extends Command {

        override public function execute():void{
            commandMap.mapEvent(CommandConstants.SOCIAL_NETWORK_CONNECTED, LoadUserDataCommand, Event);
            commandMap.mapEvent(EventConstants.LOAD_DETAILS, LoadDetailsCommand, Event);
            commandMap.mapEvent(EventConstants.LOAD_TUTORIAL_ASSETS, LoadTutorialAssets, Event);
            commandMap.mapEvent(EventConstants.LOAD_GAME_ASSETS, LoadGameAssets, Event);
            commandMap.mapEvent(TickingEvent.ADD_TICKING, AddTickingCommand, TickingEvent);
            commandMap.mapEvent(TickingEvent.REMOVE_TICKING, RemoveTickingCommand, TickingEvent);
            commandMap.mapEvent(GameEvent.LEVEL_UP, LevelUpCommand);
            commandMap.mapEvent(UserModelEvent.ON_MODEL_CHANGED, UserModelChangedCommand);
            commandMap.mapEvent(EventConstants.UPDATE_ACHIEVEMENTS, UpdateAchievementsCommand);
            commandMap.mapEvent(EventConstants.CALL_EXTERNAL, CallExternalCommand, InfoEvent);
            commandMap.mapEvent(EventConstants.PLAY_EFFECT_SOUND, PlayEffectSoundCommand, InfoEvent);
            commandMap.mapEvent(EventConstants.INIT_SOUND, PlayRandomEffectsCommand, Event, true);
            commandMap.mapEvent(EventConstants.INIT_SOUND, PlayMusicCommand, Event, true);
            commandMap.mapEvent(EventConstants.SEND_SOUND_STATE, SendSoundStateCommand, Event);
            commandMap.mapEvent(EventConstants.INIT_AVATAR, InitAvatarCommand, InfoEvent);
            commandMap.mapEvent(EventConstants.DO_NOTHING, DoNothingCommand, Event);
            commandMap.mapEvent(EventConstants.INIT_PATIENT, InitPatientCommand, InfoEvent);
            commandMap.mapEvent(EventConstants.INIT_BABY, InitBabyCommand, InfoEvent);
            commandMap.mapEvent(SlotMachineEvent.START_ROLLING, SlotMachineActionCommand);
            commandMap.mapEvent(EventConstants.PATIENT_SPEECH_BUBBLE_UPDATE, PatientSpeechBubbleUpdateCommand, InfoEvent);
            commandMap.mapEvent(EventConstants.SELECT_PET_DATA, LoadNewPatientCommand, InfoEvent);
            commandMap.mapEvent(EventConstants.LOAD_PATIENT_ASSET, LoadNewPatientAssetCommand, InfoEvent);
            commandMap.mapEvent(EventConstants.LOAD_ROOM, LoadRoomCommand, InfoEvent);
            commandMap.mapEvent(EventConstants.BUY_FOOD, BuyFoodCommand, InfoEvent);
            commandMap.mapEvent(EventConstants.BUY_ROOM_SLOT, BuyRoomslotCommand);
            commandMap.mapEvent(EventConstants.SEND_REQUEST, RequestCommand, RequestEvent);
            commandMap.mapEvent(EventConstants.STORE_START_DATA, StoreStartDataCommand, InfoEvent);
            commandMap.mapEvent(EventConstants.STORE_SHOP_DATA, StoreShopDataCommand, InfoEvent);
            commandMap.mapEvent(HandleElementEvent.CREATE_ELEMENT, HandleElementCommand);
            commandMap.mapEvent(HandleElementEvent.REMOVE_ELEMENT, HandleElementCommand);
            commandMap.mapEvent(HandleElementEvent.UPDATE_ELEMENT, HandleElementCommand);
            commandMap.mapEvent(EventConstants.INIT_ZOOM_AND_SCROLL, InitZoomAndScrollCommand);
            commandMap.mapEvent(EventConstants.UPDATE_BUILD_MODE, UpdateBuildModeCommand, Event);
            commandMap.mapEvent(BuildingEvent.TOP_FLOOR_CHANGED, TopFloorChangedCommand, BuildingEvent);
            commandMap.mapEvent(ShopEvent.UPDATE_SHOP_ITEMS, UpdateShopItemsCommand);
            commandMap.mapEvent(EventConstants.SHOP_TAB_OPEN, ShopTabOpenCommand);
            commandMap.mapEvent(RoomSlotEvent.SLOT_IS_OCCUPIED, RoomSlotIsOccupiedCommand);
            commandMap.mapEvent(EventConstants.INIT_WORLD, InitWorldCommand, InfoEvent);
            commandMap.mapEvent(EventConstants.INIT_WORLD_COMPLETE, InitWorldCompleteCommand, Event);
            commandMap.mapEvent(EventConstants.CREATE_AVATAR, CreateAvatarCommand, InfoEvent);
            commandMap.mapEvent(EventConstants.CREATE_BABY, CreateBabyCommand, InfoEvent);
            commandMap.mapEvent(EventConstants.CREATE_DOCTOR, CreateDoctorCommand, InfoEvent);
            commandMap.mapEvent(EventConstants.CREATE_NEW_DOCTOR, CreateNewDoctorCommand, InfoEvent);
            commandMap.mapEvent(EventConstants.CREATE_PATIENT, CreatePatientCommand, InfoEvent);
            commandMap.mapEvent(EventConstants.CREATE_ROOM, CreateRoomCommand, InfoEvent);
            commandMap.mapEvent(EventConstants.MOVE_TO_ROOM, MoveToRoomCommand, InfoEvent);
            commandMap.mapEvent(EventConstants.MOVE_TO_TARGET_ROOM, MoveToTargetRoomCommand, InfoEvent);
            commandMap.mapEvent(EventConstants.ON_MOVE_TO_POSITION_FINISHED, OnMoveToPositionFinishedCommand, InfoEvent);
            commandMap.mapEvent(EventConstants.HANDLE_NEXT_IN_QUEUE, HandleNextInQueueCommand, InfoEvent);
            commandMap.mapEvent(EventConstants.ADD_TO_QUEUE, AddToQueueCommand, InfoEvent);
            commandMap.mapEvent(EventConstants.HANDLE_ACTION, HandleActionCommand, InfoEvent);
            commandMap.mapEvent(EventConstants.SHOW_PATIENT_POOL_COMMAND, ShowPatientPoolCommand, InfoEvent);
            commandMap.mapEvent(EventConstants.ON_ARRIVAL_AT_HOSPITAL, ArrivalAtHospitalCommand, InfoEvent);
            commandMap.mapEvent(EventConstants.KIOSK_AVAILABLE, KioskAvailableCommand, Event);
            commandMap.mapEvent(EventConstants.CHARGE_MACHINE, ChargeMachineCommand, InfoEvent);
            commandMap.mapEvent(EventConstants.REMOVE_PATIENT, RemovePatientCommand, InfoEvent);
            commandMap.mapEvent(EventConstants.FEED, FeedCommand, InfoEvent);
            commandMap.mapEvent(EventConstants.HIGHLIGHT_MACHINES, HighlightMachinesCommand, InfoEvent);
            commandMap.mapEvent(EventConstants.ON_PATIENT_CLICKED, OnPatientClickedCommand, InfoEvent);
            commandMap.mapEvent(EventConstants.SET_ACTOR_STATE, SetActorStateCommand, InfoEvent);
            commandMap.mapEvent(EventConstants.CALL_METHOD, CallMethodCommand, InfoEvent);
            commandMap.mapEvent(EventConstants.DISPATCH_DELAYED_EVENTS, DispatchDelayedEventsCommand, InfoEvent);
            commandMap.mapEvent(EventConstants.SET_NEXT_TREATMENT_STATE, SetNextTreatmentStateCommand, InfoEvent);
            commandMap.mapEvent(EventConstants.ADD_ACTION_TO_AVATAR, AddActionToAvatar, InfoEvent);
            commandMap.mapEvent(EventConstants.HANDLE_NEXT_AVATAR_ACTION, HandleNextAvatarActionCommand, Event);
            commandMap.mapEvent(EventConstants.UPDATE_MACHINE_VIEW, UpdateMachineViewCommand, Event);
            commandMap.mapEvent(EventConstants.CHECK_STATE, CheckStateCommand, InfoEvent);
            commandMap.mapEvent(EventConstants.ON_LOAD_ERROR, HandleErrorCommand, InfoEvent);
            commandMap.mapEvent(EventConstants.ON_GROUP_PROGRESS, HandleGroupProgressCommand, InfoEvent);
            commandMap.mapEvent(EventConstants.ENFORCE_NEXT_PATIENT_ACTION, EnforceNextPatientActionCommand, InfoEvent);
            commandMap.mapEvent(EventConstants.REPORT_PROBLEM, ReportProblemCommand, InfoEvent);
            commandMap.mapEvent(EventConstants.DISMISS_CURED_PATIENT, DismissCuredPatientCommand, InfoEvent);
            commandMap.mapEvent(EventConstants.INIT_MISSION, InitMissionCommand, Event);
            commandMap.mapEvent(EventConstants.SHOW_WINDOW, ShowWindowCommand, InfoEvent);
            commandMap.mapEvent(EventConstants.COLLECT_MISSION_REWARD, CollectMissionRewardCommand, InfoEvent);
            commandMap.mapEvent(EventConstants.COLLECT_ACHIEVEMENT_REWARD, CollectAchievementRewardCommand, InfoEvent);
            commandMap.mapEvent(EventConstants.SHOW_RECEPTION_BUBBLE, ShowReceptionBubbleCommand, InfoEvent);
            commandMap.mapEvent(EventConstants.CHECK_AVAILABLE_ROOM, CheckAvailableRoomCommand, InfoEvent);
            commandMap.mapEvent(EventConstants.CREATE_REWARD_ICONS, CreateRewardIconsCommand, InfoEvent);
            commandMap.mapEvent(EventConstants.SHOW_THANK_YOU_ANI, ShowThankYouAniCommand, InfoEvent);
            commandMap.mapEvent(EventConstants.UPDATE_TREATMENT, UpdateTreatmentCommand, UpdateTreatmentEvent);
            commandMap.mapEvent(EventConstants.UPDATE_BABY_TREATMENT, UpdateBabyTreatmentCommand, UpdateTreatmentEvent);
            commandMap.mapEvent(EventConstants.ROOM_CLICKED, RoomClickedCommand, InfoEvent);
            commandMap.mapEvent(EventConstants.SET_PATIENT, SetPatientCommand, InfoEvent);
            commandMap.mapEvent(EventConstants.CREATE_DUMMY_ROOM, CreateDummyRoomCommand, InfoEvent);
            commandMap.mapEvent(EventConstants.GET_ROOM_ITEMS, GetRoomItemsCommand, InfoEvent);
            commandMap.mapEvent(EventConstants.PERFORM_TASK, PerformTaskCommand, InfoEvent);
            commandMap.mapEvent(EventConstants.VISIT_FRIEND, VisitFriendCommand, InfoEvent);
            commandMap.mapEvent(EventConstants.REMOVE_ALL_ACTORS, RemoveAllActorsCommand);
            commandMap.mapEvent(EventConstants.DISPATCH_SEND_AMBULANCE_AWAY, DispatchSendAmbulanceAwayCommand);
            commandMap.mapEvent(EventConstants.UPDATE_USER_DATA, UpdateUserDataCommand, InfoEvent);
            commandMap.mapEvent(KeyboardInputEvent.ON_KEYS_PRESSED, KeyboardInputCommand);
            commandMap.mapEvent(GameEvent.TUTORIAL_STATE_INITIALIZE, TutorialStateCommand);
            commandMap.mapEvent(EventConstants.SHOW_TUTORIAL, ShowTutorialCommand);
            commandMap.mapEvent(EventConstants.CHECK_KIOSK_TUTORIAL, CheckKioskTutorialCommand, InfoEvent);
            commandMap.mapEvent(EventConstants.CHECK_KINDERGARTEN_TUTORIAL, CheckKindergartenTutorialCommand, InfoEvent);
            commandMap.mapEvent(EventConstants.INIT_GAME, InitGameCommand, Event);
            commandMap.mapEvent(GameEvent.GAMESTATE_CHANGE, GameStateChangedCommand);
            commandMap.mapEvent(TrackingConst.TRACK, TrackingCommand);
            commandMap.mapEvent(EventConstants.SET_SUN_SPEECH_BUBBLE, SetSunSpeechBubbleCommand, InfoEvent);
            commandMap.mapEvent(EventConstants.ON_TREATMENT_FINISHED, OnTreatmentFinishedCommand, InfoEvent);
            commandMap.mapEvent(EventConstants.ON_TREATMENT_FINALIZED, OnTreatmentFinalizedCommand, InfoEvent);
            commandMap.mapEvent(EventConstants.ON_TREATMENT_STARTED, OnTreatmentStartedCommand, InfoEvent);
            commandMap.mapEvent(EventConstants.BOOST_MACHINE, BoostMachineCommand, InfoEvent);
            commandMap.mapEvent(EventConstants.TREATMENT_STATUS_UPDATED, TreatmentProgressDisplayCommand, InfoEvent);
            commandMap.mapEvent(EventConstants.BIRD_CLICKED, CollectHiddenBirdCommand);
            commandMap.mapEvent(EventConstants.ON_PATIENT_LEFT_FROM_ROOM, EntranceAreaQueManagerCommand, InfoEvent);
            commandMap.mapEvent(EventConstants.RENDER_ENTRANCE_AREA_PETS_ON_INIT_WORLD, EntranceAreaQueManagerCommand, InfoEvent);
            commandMap.mapEvent(EventConstants.POST_ON_WALL, PostOnWallCommand, InfoEvent);
            commandMap.mapEvent(GameConstants.ASK_FOR_SYMBOL, AskForSymbolCommand, InfoEvent);
            commandMap.mapEvent(GameConstants.ASK_FOR_COLLECTABLE, AskForCollectableCommand, InfoEvent);
            commandMap.mapEvent(EventConstants.SEND_GIFT_REQUEST, SendGiftRequestCommand);
            commandMap.mapEvent(EventConstants.SHOW_GIFTS_POPUP, ShowGiftPopupCommand);
            commandMap.mapEvent(ProtocolConstants.GIFT_REQUEST_SUCCESS, GiftRequestSuccessCommand);
            commandMap.mapEvent(EventConstants.SHOW_FRIEND_INVITATION_WINDOW, ShowInvitationWindowCommand);
            commandMap.mapEvent(ProtocolConstants.INVITATION_SUCCESS, InvitationRequestSuccessCommand);
            commandMap.mapEvent(ProtocolConstants.INVITATION_CANCEL, InvitationRequestFailureCommand);
            commandMap.mapEvent(EventConstants.PREPARE_VARIANT_A, PrepareVariantACommand);
            commandMap.mapEvent(EventConstants.PREPARE_VARIANT_B, PrepareVariantBCommand);
            commandMap.mapEvent(EventConstants.PREPARE_VARIANT_C, PrepareVariantCCommand);
            commandMap.mapEvent(EventConstants.PREPARE_VARIANT_D, PrepareVariantDCommand);
            commandMap.mapEvent(EventConstants.PREPARE_WAITING_QUEUE_MODE, PrepareWaitingQueueCommand);
            commandMap.mapEvent(WindowCommandTriggerEvent.BUILD_AS_SUN_WINDOW, BuildSunWindowCommand, WindowCommandTriggerEvent);
            commandMap.mapEvent(WindowCommandTriggerEvent.DESTROY_SUN_WINDOW, DestroySunWindowCommand, WindowCommandTriggerEvent);
            commandMap.mapEvent(EventConstants.SHOW_SUN_MESSAGE, ShowSunWindowCmd, InfoEvent);
            commandMap.mapEvent(WindowCommandTriggerEvent.BUILD_AS_STANDARD_WINDOW, BuildStandardWindowCommand, WindowCommandTriggerEvent);
            commandMap.mapEvent(WindowCommandTriggerEvent.DESTROY_STANDARD_WINDOW, DestroyStandardWindowCommand, WindowCommandTriggerEvent);
            commandMap.mapEvent(EventConstants.SHOW_CURRENT_MISSION, ShowCurrentMissionCommand, Event);
            commandMap.mapEvent(EventConstants.INIT_TREE, InitTreeCommand, InfoEvent);
            commandMap.mapEvent(EventConstants.HARVEST_SYMBOL, HarvestSymbolCommand, Event);
            commandMap.mapEvent(EventConstants.START_REGENERATION, StartRegenerationCommand, InfoEvent);
            commandMap.mapEvent(EventConstants.FINALIZE_REGENERATION, FinalizeRegenerationCommand, InfoEvent);
            commandMap.mapEvent(EventConstants.REACTIVATE_FOUNTAIN_ACTIONS, ReactivateFountainActionsCommand, Event);
            commandMap.mapEvent(EventConstants.CHECK_FOUNTAIN_TUTORIAL, CheckFountainTutorialCommand, InfoEvent);
            commandMap.mapEvent(EventConstants.SEND_TASK_REQUEST, SendTaskRequestCommand, TaskRequestEvent);
            commandMap.mapEvent(EventConstants.COLLECT_REWARD_ITEM, CollectRewardItemCommand, InfoEvent);
            commandMap.mapEvent(EventConstants.COLLECT_COLLECTION_REWARD_ITEM, CollectCollectionRewardItemCommand, InfoEvent);
            commandMap.mapEvent(EventConstants.CREATE_REWARD_ANIMATION_FROM_HOSPITAL, CreateRewardAnimationFromHospitalCommand, InfoEvent);
            commandMap.mapEvent(EventConstants.CREATE_REWARD_ANIMATION_INTO_HOSPITAL, CreateRewardAnimationIntoHospitalCommand, InfoEvent);
            commandMap.mapEvent(EventConstants.UPDATE_MORE_PETS_ARROW, UpdateMorePetsArrowCommand);
            commandMap.mapEvent(EventConstants.CHECK_LETTERS, CheckLettersCommand);
            commandMap.mapEvent(EventConstants.SEND_LETTER_STATE, SendLetterStateCommand);
            commandMap.mapEvent(EventConstants.LETTER_BUTTON_CLICKED, LetterButtonClickedCommand);
            commandMap.mapEvent(EventConstants.CREATE_POPUP, CreatePopupCommand, InfoEvent);
            commandMap.mapEvent(EventConstants.DESTROY_POPUP, DestroyPopupCommand, InfoEvent);
            commandMap.mapEvent(EventConstants.OPEN_BOOST_SHOP_POPUP, OpenBoostShopCommand, Event);
            commandMap.mapEvent(EventConstants.DISPLAY_TREATMENT_COSTS, DisplayTreatmentCostsCommand, InfoEvent);
            commandMap.mapEvent(EventConstants.SHOW_EXTRA_ENERGY_POPUP, ShowExtraEnergyPopupCommand, Event);
            commandMap.mapEvent(ProtocolConstants.PLACE_ORDER_SUCCESS, PlaceOrderSuccessCommand);
            commandMap.mapEvent(ProtocolConstants.PLACE_ORDER_FAILURE, PlaceOrderFailureCommand);
            commandMap.mapEvent(ProtocolConstants.PLACE_ORDER_CANCEL, PlaceOrderFailureCommand);
            commandMap.mapEvent(EventConstants.START_PAYMENT, StartPaymentCommand);
            commandMap.mapEvent(EventConstants.COLLECT_SPECIAL, CollectSpecialCommand);
            commandMap.mapEvent(EventConstants.PRELOAD_LEVELUP_ICON, PreloadLevelupIconCommand, Event);
            commandMap.mapEvent(EventConstants.PRELOAD_COMPUTER_DISPLAY, PreloadComputerDisplayCommand, Event);
            commandMap.mapEvent(GameConstants.ASK_FOR_DOCTOR, AskForDoctorCommand, Event);
            commandMap.mapEvent(GameConstants.BUY_A_DOCTOR, BuyADoctorCommand, InfoEvent);
            commandMap.mapEvent(GameConstants.WELCOME_A_DOCTOR, WelcomeADoctorCommand, InfoEvent);
            commandMap.mapEvent(GameConstants.CRAFT_PRODUCT, CraftProductCommand, InfoEvent);
            commandMap.mapEvent(GameConstants.BUY_KIOSK_PRODUCT, BuyKioskProductCommand, InfoEvent);
            commandMap.mapEvent(EventConstants.INIT_CONTRACT, InitContractCommand, InfoEvent);
            commandMap.mapEvent(EventConstants.CREATE_CONTRACT, CreateContractCommand, InfoEvent);
            commandMap.mapEvent(EventConstants.FINALIZE_CONTRACT, FinalizeContractCommand, InfoEvent);
            commandMap.mapEvent(EventConstants.BUY_CONTRACT, BuyContractCommand, InfoEvent);
            commandMap.mapEvent(EventConstants.INIT_KINDERGARTEN_TEASER, InitKindergartenTeaserCommand);
            commandMap.mapEvent(EventConstants.REMOVE_KINDERGARTEN, RemoveKindergartenCommand);
            commandMap.mapEvent(EventConstants.MOVE_TEASER_BABY_TO_KINDERGARTEN, MoveTeaserToKindergartenCommand);
            commandMap.mapEvent(EventConstants.BABY_TREATMENTS_FINISHED, BabyTreatmentsFinishedCommand);
            commandMap.mapEvent(EventConstants.HUG, HugCommand);
            commandMap.mapEvent(EventConstants.PRELOAD_BABY, PreloadBabyCommand);
            commandMap.mapEvent(EventConstants.SEND_TO_FAMILY, SendToFamilyCommand);
            commandMap.mapEvent(EventConstants.BUY_ADOPT, BuyAdoptCommand, InfoEvent);
            commandMap.mapEvent(EventConstants.UPDATE_AND_SHOW_POPUP, UpdateBabyAndShowPopupCommand, InfoEvent);
            commandMap.mapEvent(EventConstants.CHECK_FOR_SURPRISE_PACKAGES, CheckForSurprisePackagesCommand, null, true);
            commandMap.mapEvent(EventConstants.TRADE_COLLECTION, TradeCollectableCommand, InfoEvent);
            commandMap.mapEvent(EventConstants.UPDATE_COLLECTION_POPUPS, UpdateCollectionPopupsCommand, InfoEvent);
        }

    }
}//package net.wooga.pets.controllers.startup 
